var mongoose = require('mongoose');
const config = require('../config/config')
mongoose.connect(config.dbUrl, (err, docs) => {
        if (err) {
            console.log(err);
            return
        }
        console.log('数据库连接成功!');
    }) //链接地址

module.exports = mongoose